<?

$this->breadcrumbs[] = UserModule::t('app', 'Регистрация');

$this->pageTitle = UserModule::t('app', 'Регистрация');

?>

<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'registration-form',
    'enableAjaxValidation'=>false,
)); ?>

<div class="form">
    <div class="row">
        <?=$form->labelEx($USER,'email'); ?>
        <?=$form->textField($USER,'email'); ?>
        <?=$form->error($USER,'email'); ?>
    </div>
    <div class="row">
        <?=$form->labelEx($USER,'nick'); ?>
        <?=$form->textField($USER,'nick'); ?>
        <?=$form->error($USER,'nick'); ?>
    </div>
    <div class="row">
        <?=$form->labelEx($USER,'name'); ?>
        <?=$form->textField($USER,'name'); ?>
        <?=$form->error($USER,'name'); ?>
    </div>
    <div class="row">
        <?=$form->labelEx($USER,'lname'); ?>
        <?=$form->textField($USER,'lname'); ?>
        <?=$form->error($USER,'lname'); ?>
    </div>
    <div class="row">
        <?=$form->labelEx($USER,'password'); ?>
        <?=$form->passwordField($USER,'password'); ?>
        <?=$form->error($USER,'password'); ?>
    </div>
    <div class="row">
        <?=$form->labelEx($USER,'passwordApp'); ?>
        <?=$form->passwordField($USER,'passwordApp'); ?>
        <?=$form->error($USER,'passwordApp'); ?>
    </div>
    <div class="row">
        <?=$form->labelEx($USER,'verifyCode'); ?>
        <?=$form->textField($USER,'verifyCode'); ?>
        <?=$form->error($USER,'verifyCode'); ?>
    </div>
    <div class="row">
        <?php $this->widget('CCaptcha', array(
            'captchaAction'=>'/site/captcha',
            'showRefreshButton'=>false,
            'clickableImage'=>true,
            'imageOptions' => array(
                'title' => UserModule::t('app', 'Кликните для перезагрузки капчи')
            )
        ));?>
    </div>
    
    <div class="row">
        <?=CHtml::submitButton(UserModule::t('app', 'Зарегистрироваться'))?>
    </div>
    
    <div class="row">
        <a href="<?=UserModule::url('forgotpass/do', array(), true)?>"><?=UserModule::t('app', 'Forgot password')?>?</a><br />
        <a href="<?=UserModule::url('login/do', array(), true)?>"><?=UserModule::t('app', 'Authorize')?></a>
    </div>
</div>
<?php $this->endWidget(); ?>
